/*
 * invokeserver.h
 *
 *  Created on: 2012-8-8
 *      Author: epmm
 */

#ifndef INVOKESERVER_H_
#define INVOKESERVER_H_

class CInvokeServer :public CSocketClient
{
public:
	int m_Domiam;
	sockaddr_un m_LocalUnixAddr;
	sockaddr_in m_SocketAddr;

	CProtocolParse m_Parse;
public:
	CInvokeServer();
	CInvokeServer(const char* sPath);
	CInvokeServer(int port,const char* ip);
	virtual ~CInvokeServer();

public:
	int Invoke(CTagset& InParam,CTagset& OutParam);	// invoke af_inet
	int Invoke(CTagset& InParam);	// invoke af_inet


private:
	int Send(string& strBuffer,int nFlag = 0);
	int Recv(string& strBuffer,int nFlag = 0);


};

#endif /* INVOKESERVER_H_ */
